home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Misc / ASFCopy / asferr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  9.8 KB  |  471 lines

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // ASFErr.h - definition of ASF HRESULT codes
  4. //
  5. //  Microsoft Windows Media Technology
  6. //  Copyright (C) Microsoft Corporation, 1999-2001.  All Rights Reserved.
  7. //
  8. // This file is generated by the MC tool from ASFErr.mc
  9. //
  10.  
  11. #ifndef _ASFERR_H
  12. #define _ASFERR_H
  13.  
  14.  
  15. #define STATUS_SEVERITY(hr)  (((hr) >> 30) & 0x3)
  16.  
  17.  
  18. ///////////////////////////////////////////////////////////////////////////
  19. //
  20. // Advanced Streaming Format (ASF) Errors (2000-2999)
  21. //
  22. //
  23. //  Values are 32 bit values layed out as follows:
  24. //
  25. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  26. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  27. //  +---+-+-+-----------------------+-------------------------------+
  28. //  |Sev|C|R|     Facility          |               Code            |
  29. //  +---+-+-+-----------------------+-------------------------------+
  30. //
  31. //  where
  32. //
  33. //      Sev - is the severity code
  34. //
  35. //          00 - Success
  36. //          01 - Informational
  37. //          10 - Warning
  38. //          11 - Error
  39. //
  40. //      C - is the Customer code flag
  41. //
  42. //      R - is a reserved bit
  43. //
  44. //      Facility - is the facility code
  45. //
  46. //      Code - is the facility's status code
  47. //
  48. //
  49. // Define the facility codes
  50. //
  51. #define FACILITY_NS                      0xD
  52.  
  53.  
  54. //
  55. // Define the severity codes
  56. //
  57. #define STATUS_SEVERITY_WARNING          0x2
  58. #define STATUS_SEVERITY_SUCCESS          0x0
  59. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  60. #define STATUS_SEVERITY_ERROR            0x3
  61.  
  62.  
  63. //
  64. // MessageId: ASF_E_BUFFEROVERRUN
  65. //
  66. // MessageText:
  67. //
  68. //  An attempt was made to seek or position past the end of a buffer.%0
  69. //
  70. #define ASF_E_BUFFEROVERRUN              0xC00D07D0L
  71.  
  72. //
  73. // MessageId: ASF_E_BUFFERTOOSMALL
  74. //
  75. // MessageText:
  76. //
  77. //  The supplied input or output buffer was too small.%0
  78. //
  79. #define ASF_E_BUFFERTOOSMALL             0xC00D07D1L
  80.  
  81. //
  82. // MessageId: ASF_E_BADLANGUAGEID
  83. //
  84. // MessageText:
  85. //
  86. //  The language ID was not found.%0
  87. //
  88. #define ASF_E_BADLANGUAGEID              0xC00D07D2L
  89.  
  90. //
  91. // MessageId: ASF_E_NOPAYLOADLENGTH
  92. //
  93. // MessageText:
  94. //
  95. //  The multiple payload packet is missing the payload length.%0
  96. //
  97. #define ASF_E_NOPAYLOADLENGTH            0xC00D07DBL
  98.  
  99. //
  100. // MessageId: ASF_E_TOOMANYPAYLOADS
  101. //
  102. // MessageText:
  103. //
  104. //  The packet contains too many payloads.%0
  105. //
  106. #define ASF_E_TOOMANYPAYLOADS            0xC00D07DCL
  107.  
  108. //
  109. // MessageId: ASF_E_PACKETCONTENTTOOLARGE
  110. //
  111. // MessageText:
  112. //
  113. //  ASF_E_PACKETCONTENTTOOLARGE
  114. //
  115. #define ASF_E_PACKETCONTENTTOOLARGE      0xC00D07DEL
  116.  
  117. //
  118. // MessageId: ASF_E_UNKNOWNPACKETSIZE
  119. //
  120. // MessageText:
  121. //
  122. //  Expecting a fixed packet size but min. and max. are not equal.%0
  123. //
  124. #define ASF_E_UNKNOWNPACKETSIZE          0xC00D07E0L
  125.  
  126. //
  127. // MessageId: ASF_E_INVALIDHEADER
  128. //
  129. // MessageText:
  130. //
  131. //  ASF_E_INVALIDHEADER
  132. //
  133. #define ASF_E_INVALIDHEADER              0xC00D07E2L
  134.  
  135. //
  136. // MessageId: ASF_E_NOCLOCKOBJECT
  137. //
  138. // MessageText:
  139. //
  140. //  The object does not have a valid clock object.%0
  141. //
  142. #define ASF_E_NOCLOCKOBJECT              0xC00D07E6L
  143.  
  144. //
  145. // MessageId: ASF_E_UNKNOWNCLOCKTYPE
  146. //
  147. // MessageText:
  148. //
  149. //  ASF_E_UNKNOWNCLOCKTYPE
  150. //
  151. #define ASF_E_UNKNOWNCLOCKTYPE           0xC00D07EBL
  152.  
  153. //
  154. // MessageId: ASF_E_OPAQUEPACKET
  155. //
  156. // MessageText:
  157. //
  158. //  An attempt was made to restore or access an opaque packet.%0
  159. //
  160. #define ASF_E_OPAQUEPACKET               0xC00D07EDL
  161.  
  162. //
  163. // MessageId: ASF_E_WRONGVERSION
  164. //
  165. // MessageText:
  166. //
  167. //  ASF_E_WRONGVERSION
  168. //
  169. #define ASF_E_WRONGVERSION               0xC00D07EEL
  170.  
  171. //
  172. // MessageId: ASF_E_OVERFLOW
  173. //
  174. // MessageText:
  175. //
  176. //  An attempt was made to store a value which was larger than then destination's maximum value.%0
  177. //
  178. #define ASF_E_OVERFLOW                   0xC00D07EFL
  179.  
  180. //
  181. // MessageId: ASF_E_NOTFOUND
  182. //
  183. // MessageText:
  184. //
  185. //  The object was not found.%0
  186. //
  187. #define ASF_E_NOTFOUND                   0xC00D07F0L
  188.  
  189. //
  190. // Someone else is using MessageIds 2033 & 2034, so we skip them
  191. // 
  192. // 2033 = NS_E_NOTHING_TO_DO
  193. // 2034 = NS_E_NO_MULTICAST
  194.  
  195. //
  196. // MessageId: ASF_E_OBJECTTOOBIG
  197. //
  198. // MessageText:
  199. //
  200. //  The object is too large to be processed in the requested manner.%0
  201. //
  202. #define ASF_E_OBJECTTOOBIG               0xC00D07F3L
  203.  
  204. //
  205. // MessageId: ASF_E_UNEXPECTEDVALUE
  206. //
  207. // MessageText:
  208. //
  209. //  A value was not set as expected.%0
  210. //
  211. #define ASF_E_UNEXPECTEDVALUE            0xC00D07F4L
  212.  
  213. //
  214. // MessageId: ASF_E_INVALIDSTATE
  215. //
  216. // MessageText:
  217. //
  218. //  The request is not valid in the object's current state.%0
  219. //
  220. #define ASF_E_INVALIDSTATE               0xC00D07F5L
  221.  
  222. //
  223. // MessageId: ASF_E_NOLIBRARY
  224. //
  225. // MessageText:
  226. //
  227. //  This object does not have a valid library pointer; it was not properly created or it has been Shutdown().%0
  228. //
  229. #define ASF_E_NOLIBRARY                  0xC00D07F6L
  230.  
  231. //
  232. // MessageId: ASF_E_ALREADYINITIALIZED
  233. //
  234. // MessageText:
  235. //
  236. //  This object has already been initialized; the setting cannot be changed.%0
  237. //
  238. #define ASF_E_ALREADYINITIALIZED         0xC00D07F7L
  239.  
  240. //
  241. // MessageId: ASF_E_INVALIDINIT
  242. //
  243. // MessageText:
  244. //
  245. //  This object has not been initialized properly; that operation cannot be performed.%0
  246. //
  247. #define ASF_E_INVALIDINIT                0xC00D07F8L
  248.  
  249. //
  250. // MessageId: ASF_E_NOHEADEROBJECT
  251. //
  252. // MessageText:
  253. //
  254. //  The ASF Header object could not be found.%0
  255. //
  256. #define ASF_E_NOHEADEROBJECT             0xC00D07F9L
  257.  
  258. //
  259. // MessageId: ASF_E_NODATAOBJECT
  260. //
  261. // MessageText:
  262. //
  263. //  The ASF Data object could not be found.%0
  264. //
  265. #define ASF_E_NODATAOBJECT               0xC00D07FAL
  266.  
  267. //
  268. // MessageId: ASF_E_NOINDEXOBJECT
  269. //
  270. // MessageText:
  271. //
  272. //  The ASF Index object could not be found.%0
  273. //
  274. #define ASF_E_NOINDEXOBJECT              0xC00D07FBL
  275.  
  276. //
  277. // MessageId: ASF_E_NOSTREAMPROPS
  278. //
  279. // MessageText:
  280. //
  281. //  A Stream Properties object with the correct stream number could not be found.%0
  282. //
  283. #define ASF_E_NOSTREAMPROPS              0xC00D07FCL
  284.  
  285. //
  286. // MessageId: ASF_E_NOFILEPROPS
  287. //
  288. // MessageText:
  289. //
  290. //  The File Properties object could not be found.%0
  291. //
  292. #define ASF_E_NOFILEPROPS                0xC00D07FDL
  293.  
  294. //
  295. // MessageId: ASF_E_NOLANGUAGELIST
  296. //
  297. // MessageText:
  298. //
  299. //  The Language List object could not be found.%0
  300. //
  301. #define ASF_E_NOLANGUAGELIST             0xC00D07FEL
  302.  
  303. //
  304. // MessageId: ASF_E_NOINDEXPARAMETERS
  305. //
  306. // MessageText:
  307. //
  308. //  The Index Parameters object could not be found.%0
  309. //
  310. #define ASF_E_NOINDEXPARAMETERS          0xC00D07FFL
  311.  
  312. //
  313. // MessageId: ASF_E_UNSUPPORTEDERRORCONCEALMENT
  314. //
  315. // MessageText:
  316. //
  317. //  The requested error concealment strategy is not supported by this component.%0
  318. //
  319. #define ASF_E_UNSUPPORTEDERRORCONCEALMENT 0xC00D0800L
  320.  
  321. //
  322. // MessageId: ASF_E_INVALIDFLAGS
  323. //
  324. // MessageText:
  325. //
  326. //  The flags for this object or set of objects are not properly set.%0
  327. //
  328. #define ASF_E_INVALIDFLAGS               0xC00D0801L
  329.  
  330. //
  331. // MessageId: ASF_E_BADDATADESCRIPTOR
  332. //
  333. // MessageText:
  334. //
  335. //  One or more data descriptors is not properly set.%0
  336. //
  337. #define ASF_E_BADDATADESCRIPTOR          0xC00D0802L
  338.  
  339. //
  340. // MessageId: ASF_E_BADINDEXTIMEINTERVAL
  341. //
  342. // MessageText:
  343. //
  344. //  The index has an invalid time interval (probably zero).%0
  345. //
  346. #define ASF_E_BADINDEXTIMEINTERVAL       0xC00D0803L
  347.  
  348. //
  349. // MessageId: ASF_E_INVALIDTIME
  350. //
  351. // MessageText:
  352. //
  353. //  The given time value is not valid.%0
  354. //
  355. #define ASF_E_INVALIDTIME                0xC00D0804L
  356.  
  357. //
  358. // MessageId: ASF_E_INVALIDINDEX
  359. //
  360. // MessageText:
  361. //
  362. //  The given index value is not valid.%0
  363. //
  364. #define ASF_E_INVALIDINDEX               0xC00D0805L
  365.  
  366. //
  367. // MessageId: ASF_E_STREAMNUMBERINUSE
  368. //
  369. // MessageText:
  370. //
  371. //  The specified stream number is already in use.%0
  372. //
  373. #define ASF_E_STREAMNUMBERINUSE          0xC00D0806L
  374.  
  375. //
  376. // MessageId: ASF_E_BADMEDIATYPE
  377. //
  378. // MessageText:
  379. //
  380. //  The specified media type does not work with this component.%0
  381. //
  382. #define ASF_E_BADMEDIATYPE               0xC00D0807L
  383.  
  384. //
  385. // MessageId: ASF_E_WRITEFAILED
  386. //
  387. // MessageText:
  388. //
  389. //  The object could not be written as specified.%0
  390. //
  391. #define ASF_E_WRITEFAILED                0xC00D0808L
  392.  
  393. //
  394. // MessageId: ASF_E_NOTENOUGHDESCRIPTORS
  395. //
  396. // MessageText:
  397. //
  398. //  The given data unit requires a larger number of descriptors to be fully parsed.%0
  399. //
  400. #define ASF_E_NOTENOUGHDESCRIPTORS       0xC00D0809L
  401.  
  402. //
  403. // MessageId: ASF_E_INDEXBLOCKUNLOADED
  404. //
  405. // MessageText:
  406. //
  407. //  The index entries for the specified index block have been unloaded from memory and are not available.%0
  408. //
  409. #define ASF_E_INDEXBLOCKUNLOADED         0xC00D080AL
  410.  
  411. //
  412. // MessageId: ASF_E_NOTENOUGHBANDWIDTH
  413. //
  414. // MessageText:
  415. //
  416. //  The specified bandwidth is not large enough.%0
  417. //
  418. #define ASF_E_NOTENOUGHBANDWIDTH         0xC00D080BL
  419.  
  420. //
  421. // MessageId: ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE
  422. //
  423. // MessageText:
  424. //
  425. //  The object has exceeded its maximum size.%0
  426. //
  427. #define ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE  0xC00D080CL
  428.  
  429. //
  430. // MessageId: ASF_E_BADDATAUNIT
  431. //
  432. // MessageText:
  433. //
  434. //  The given data unit is corrupted, badly formatted, or otherwise not valid.%0
  435. //
  436. #define ASF_E_BADDATAUNIT                0xC00D080DL
  437.  
  438. //
  439. // MessageId: ASF_E_HEADERSIZE
  440. //
  441. // MessageText:
  442. //
  443. //  The ASF header has exceeded the specified maximum size.%0
  444. //
  445. #define ASF_E_HEADERSIZE                 0xC00D080EL
  446.  
  447.  
  448. ///////////////////////////////////////////////////////////////////////////
  449. //
  450. // Advanced Streaming Format (ASF) Success Codes (2000-2999)
  451. //
  452.  
  453. //
  454. // MessageId: ASF_S_OPAQUEPACKET
  455. //
  456. // MessageText:
  457. //
  458. //  ASF_S_OPAQUEPACKET
  459. //
  460. #define ASF_S_OPAQUEPACKET               0x000D07F0L
  461.  
  462.  
  463. ///////////////////////////////////////////////////////////////////////////
  464. //
  465. // Advanced Streaming Format (ASF) Warnings (2000-2999)
  466. //
  467.  
  468.  
  469. #endif // _ASFERR_H
  470.  
  471.